<?php

require_once dirname(__FILE__) . '/../lib/bb_personaGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/bb_personaGeneratorHelper.class.php';

/**
 * bb_persona actions.
 *
 * @package    ingenyo-biblio
 * @subpackage bb_persona
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class bb_personaActions extends autoBb_personaActions
{

  public function executeVerPrestamos(sfRequest $request)
  {
    $this->getUser()->setAttribute('id_persona', $request->getParameter('id'));
    $this->redirect('bb_prestamo/indexByPersona');

  }
  public function executeVerReservas(sfRequest $request)
  {
    $this->getUser()->setAttribute('id_persona', $request->getParameter('id'));
    $this->redirect('bb_reserva_libro/indexByPersona');

  }

  public function executePenalizar(sfRequest $request)
  {
    $this->getUser()->setAttribute('id_persona', $request->getParameter('id'));
    $this->redirect('bb_penalizacion/new');
  }

  public function executeVerPenalizaciones(sfRequest $request)
  {
    $this->getUser()->setAttribute('id_persona', $request->getParameter('id'));
    $this->redirect('bb_penalizacion/indexByPersona');
  }
}
